# -*- coding: utf-8 -*-
# Python中默认的编码格式是 ASCII 格式，在没修改编码格式时无法正确打印汉字，所以在读取中文时会报错。

# traceback——————————更详细的打印报错信息

# https://blog.csdn.net/handsomekang/article/details/9373035
# https://www.jianshu.com/p/a8cb5375171a

import traceback
try:
    1/0
except Exception as e:
    print(e)


try:
    1/0
except Exception as e:
    traceback.print_exc(e)
    print("___")